import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 查询打印店列表
export function getMerchantList(query) {
    return request({
        url: '/merchant/list',
        method: 'get',
        params: query
    })
}

export function addMerchant(data) {
    return request({
        url: '/merchant/add',
        method: 'post',
        data: data
    })
}

export function editMerchant(data) {
    return request({
        url: '/merchant/edit',
        method: 'post',
        data: data
    })
}

export function delShop(data) {
    return request({
        url: '/dept/delete/' + data.id,
        method: 'post',
        data: data
    })
}

export function getMerchantById(query) {
    return request({
        url: '/merchant/id/'+query.id,
        method: 'get',
        params: query
    })
}